package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("排查记录表")
public class RiskCheckRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "任务ID,有就来自排查任务")
    private Long taskId;

    @ApiModelProperty(value = "隐患来源")
    private String source;

    @ApiModelProperty(value = "对象ID")
    private Long objectId;

    @ApiModelProperty(value = "单元ID")
    private Long unitId;

    @ApiModelProperty(value = "排查内容")
    private String content;

    @ApiModelProperty(value = "检查人部门")
    private Long checkDept;

    /**
     * 手动新增的排查记录：检查人=实际检查人
     */
    @ApiModelProperty(value = "实际检查人")
    private Long checkBy;

    @ApiModelProperty(value = "是否包保责任人任务（1是；0 否)")
    private String isDefend;

    /**
     * 默认为安全风险单元中配置的IMEI号
     * pc端可自主修改
     * 手机端自动获取
     */
    @ApiModelProperty(value = "IMEI号")
    private String imei;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "排查开始时间")
    private Date checkBeginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "排查终止时间")
    private Date checkEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际排查时间")
    private Date checkTime;

    @ApiModelProperty(value = "排查状态,0未排查,1已排查,2待确认、3不采纳、4转派责任人、5回退")
    private String checkStatus;

    @ApiModelProperty(value = "排查结果,0正常,1存在隐患")
    private String result;

}
